char c[81],s[81],d[4];main(i,w,t,a){gets(c);for(w=i=0;t=c[i];i++){if(t==37){t=c[i+1];a=w;if(t==50){t=c[i+2];if(t==48)s[w++]=32;if(t==49)s[w++]=33;if(t==52)s[w++]=36;if(t==53)s[w++]=37;if(t==56)s[w++]=40;if(t==57)s[w++]=41;if(t==97)s[w++]=42;}if(a-w)i+=2;else s[w++]=37;}else s[w++]=c[i];}puts(s);}
